package com.xiangge.zuoye.Demo2;

import java.util.Scanner;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 15:19
 * @description
 */
public class MainApp {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Student s1 = new Student();
        System.out.println("请输入学员编号：");
        s1.setId(input.next());
        System.out.println("请输入学员姓名：");
        s1.setName(input.next());
        System.out.println("请输入学员性别：");
        s1.setSex(input.next());
        System.out.println("请输入学员身高：");
        s1.setHeight(input.nextDouble());
        System.out.println("请输入学员年龄：");
        s1.setAge(input.nextInt());

        s1.getInfo();
    }
}
